package com.finance.cooperate.feature.builder.submodel;

import com.finance.cooperate.feature.base.ReaderImpl;
import com.finance.cooperate.feature.builder.submodel.support.intermediate.IntermediateFeature001;
import com.finance.cooperate.feature.builder.submodel.support.intermediate.IntermediateFeature002;
import com.finance.cooperate.feature.builder.submodel.support.intermediate.IntermediateFeature003;

import java.util.Map;

/**
 * @ClassName IntermediateFeature
 * @Description 现在 Intermediate 特征太多了，把这个类拆分下处理
 * @Author shen
 * @Date 2022/6/2 15:59
 * @Modify ...
 */
public class IntermediateFeature extends ReaderImpl {


    @Override
    public Map<String, String> read(String userId) {

        // 用户基本信息子模型特征
        super.setResult(
                new IntermediateFeature001()
                        .setResult(super.getResult())
                        .read(userId)
        );

        super.setResult(
                new IntermediateFeature002()
                        .setResult(super.getResult())
                        .read(userId)
        );

        super.setResult(
                new IntermediateFeature003()
                        .setResult(super.getResult())
                        .read(userId)
        );

        return super.getResult();
    }
}
